/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bff.startup;

import java.awt.Dimension;

/**
 *
 * @author Bill
 */
public class StartupState {

    private boolean miniPlayer;
    private Dimension dimension;
    private int x;
    private int y;
    private State state;

    /**
     * @return the miniPlayer
     */
    public boolean isMiniPlayer() {
        return miniPlayer;
    }

    /**
     * @param miniPlayer the miniPlayer to set
     */
    public void setMiniPlayer(boolean miniPlayer) {
        this.miniPlayer = miniPlayer;
    }

    /**
     * @return the dimension
     */
    public Dimension getDimension() {
        return dimension;
    }

    /**
     * @param dimension the dimension to set
     */
    public void setDimension(Dimension dimension) {
        this.dimension = dimension;
    }

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the state
     */
    public State getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(State state) {
        this.state = state;
    }

    public enum State {

        STATE_SIZED("sized"),
        STATE_MIN("minimized"),
        STATE_MAX("maximized");

        State(String desc) {
            this.description = desc;
        }
        private String description;

        /**
         * @return the description
         */
        public String getDescription() {
            return description;
        }
    }

     public StartupState(State state) {
        this.state = state;
    }

    public StartupState(State state, boolean isMiniPlayer) {
        this.state = state;
        this.miniPlayer = isMiniPlayer;
    }


    public StartupState(Dimension dim, int x, int y, boolean isMiniPlayer) {
        this.state = State.STATE_SIZED;
        this.dimension = dim;
        this.miniPlayer = isMiniPlayer;
        this.x = x;
        this.y = y;
    }

}
